#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	n = n ^ m;
	m = n ^ m;
	n = n ^ m;
	printf("%d %d", n, m);
}